[SUBROUTINE]
version = 1.14
icon = polyline-mirrored.png
name = _("Arc Mirrored")
type = poly_arc_bisector
help = _("<b>Add an mirrored arc to a polyline</b>&#10;Define mirror line, I and J offsets, angle and direction")
order = act h3 cs cr rev h1 type i j h5 x y sl dir

[PARAM_H3]
name = _("Link")
type = sub-header
tool_tip = _("Link style with previous item")

[PARAM_CS]
name = _("Type")
header = h3
type = combo
options = _("None=0:Rounded=1:Beveled=2:Inverted Round=3")
icon = corner-style.png
tool_tip = _("Select link type")
value = 0

[PARAM_CR]
name = _("Radius")
header = h3
type = float
minimum_value = 0.0
icon = corner-radius.png
tool_tip = _("Radius for rounded or distance from apex")
value = 0.3
metric_value = 6

[PARAM_REV]
name = _("Complement")
icon = complement.png
type = bool
header = h3
tool_tip = _("Reverse direction of tool path for rounded or inverted round")
value = 0

[PARAM_H5]
name = _("Mirror line end")
type = sub-header

[PARAM_X]
name = _("X")
header = h5
type = float
icon = x.png
tool_tip = _("Mirror line end")
value = 3
metric_value = 75.0

[PARAM_Y]
name = _("Y")
header = h5
type = float
icon = y.png
tool_tip = _("Mirror line end")
value = 0
metric_value = 0.0

[PARAM_SL]
name = _("Show line")
header = h5
type = bool
icon = glasses.png
value = 1

[PARAM_ACT]
name = _("Active")
icon = enable.png
type = bool
value = 1

[PARAM_H1]
name = _("Arc center")
type = sub-header

[PARAM_TYPE]
name = _("Using")
header = h1
type = combo
options = _("Offsets=14:Absolute position=15")
tool_tip = _("Arc center option")
value = 14
icon = line-rel.png

[PARAM_I]
type = float
name = _("I offset or cX")
icon = i.png
value = 1
metric_value = 20
header = h1
tool_tip = _("Offset or absolute value")

[PARAM_J]
type = float
name = _("J offset or cY")
icon = j.png
value = 0
metric_value = 0.0
header = h1
tool_tip = _("Offset or absolute value")

[PARAM_DIR]
name = _("Direction")
header = h5
type = combo
options = _("Clockwise=2:Counter-Clockwise=3")
icon = cw-ccw.png
tool_tip = _("Direction of path")
value = 3

[CALL]
content =
	(begin #sub_name)
	(arc mirrored with I,J offsets or absolute center author : Fernand Veilleux)
	o<#self_id_active> if [#param_act AND #<in_polyline>]
		o<poly_add_item> CALL [#param_type] [#param_i] [#param_j] [#param_dir] [#param_cs] [#param_cr] [#param_rev] [100] [#param_x] [#param_y] [#param_sl]
	o<#self_id_active> endif
